﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shsc.Net.Common.Resource;

namespace Shsc.Net.Common.Exeption
{
    public class BaseException : SystemException
    {
        public string MessageId { get; set; }

        public string[] Param { get; set; }

        public BaseException()
        {
        }

        public BaseException(string _messageId, params string[] _param)
        {
            MessageId = _messageId;
            Param = _param;
        }

        public override string Message
        {
            get
            {
                return MessageUtil.getMessage(MessageId, "", Constants.ErrorMessageResourcePath, Param);
            }
        }
    }
}
